package com.wzq.controller;


import java.text.SimpleDateFormat;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.wzq.bean.DisasterCModel;
import com.wzq.util.AbstractApiController;
import com.wzq.util.ApiResponse;
import com.wzq.util.ResponseCode;


@Controller
@RequestMapping("/eq")
public class EqCollectionController extends AbstractApiController{
	protected final Logger logger = LogManager.getLogger(EqCollectionController.class);
	
	/**
	 * 灾情采集
	 * @param name
	 * @return
	 */
	@RequestMapping("disCollect")
	@ResponseBody
	public ApiResponse disCollect(DisasterCModel model){
	
		ApiResponse response = new  ApiResponse(ResponseCode.SUCC);
		
		SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		response.setData(model);
		
		return response;
	}
	
	
}
